package com.example.springadminclient.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = {"/client"})
public class IndexController {

    private static final Logger log = LoggerFactory.getLogger(IndexController.class);

    @GetMapping(value = {"/index"})
    public String index(){
        log.warn(" 正在警告中******");
        log.info(" 正在正常输**********");
        return "Hello World";
    }
}
